package com.hx.voice.recognition.admin.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hx.voice.recognition.admin.manager.entity.Element;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jack
 * @since 2019-06-12
 */
public interface ElementMapper extends BaseMapper<Element> {

    /**
     * @description 查询所有的菜单下的所有操作
     * @method  selectAllElementPermissions
     * @param  []
     * @return java.util.List<com.hx.zjb.security.admin.manager.entity.Element>
     * @date: 2019/6/13 15:30
     * @author:zhoujinbing
     */
    List<Element> selectAllElementPermissions();

    /**
     * @description 根据用户所在的组查询所拥有的权限
     * @method  getAuthrityElementByUserId
     * @param  [id]
     * @return java.util.List<com.hx.zjb.security.admin.manager.entity.Element>
     * @date: 2019/6/13 17:54
     * @author:zhoujinbing
     */
    List<Element> getAuthrityElementByUserId(@Param("id") Integer id);
}
